package org.example.authservice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.example.authservice.mapper.ApplicationMapper;
import org.example.authservice.pojo.Application;
import org.example.authservice.service.ApplicationService;
import org.springframework.stereotype.Service;

/**
 * @author 顾翔宇
 * @since 2024/12/16 11：34
 * @version 1.0
 */
@Service
public class ApplicationServiceImpl extends ServiceImpl<ApplicationMapper, Application> implements ApplicationService {

    /**
     * 用于操作身份信息数据库
     */
    @Resource
    private ApplicationMapper applicationMapper;

    /**
     * 删除用户原有信息接口
     * @param userId 用户ID
     */
    @Override
    public void delete(Integer userId) {
        applicationMapper.remove(userId);
    }
}